import request from '@/axios'

//删除字典转换
export const delApi = (params) => {
  return request.delete({ url: '/dbms-server/base/dictionarytype/delete', params })
}

//改变状态
export const checkstateApi = (typeCode) => {
  return request.put({ url: '/dbms-server/base/dictionarytype/checkstate', params: { typeCode } })
}
//转换配置字典列表
export const dtjlistApi = (typeCode) => {
  return request.post({ url: '/dbms-server/base/dictionarytype/dtjlist', data: { typeCode } })
}

//初始化字典转换
export const initValueApi = (params) => {
  return request.put({ url: '/dbms-server/base/dictionarytype/initvalue', params })
}

//清空字典转换配置值
export const clearValueApi = (params) => {
  return request.delete({ url: '/dbms-server/base/dictionarytype/clearvalue', params })
}
